package spring.cloud.tasks.common.task_item_allot;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Setter
@Getter
public class OnlineExecutor {
    private String executorId;
    private String ip;
    /**
     * 拥有流量
     */
    private boolean ownTraffic;
    /**
     * 能够运行的任务id list
     */
    private List<String> supportedTaskIdList;
    /**
     * 允许被运行的任务分片
     */
    private List<TaskItem> assignedTaskItemList = new ArrayList<>();
    /**
     * 总权重
     */
    private int totalLoadLevel;
}
